home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-06-08 | 1.1 KB | 34 lines | [TEXT/ttxt] |
-
- Skript Workdays
-
- This script computes the amount of work days between two dates in the Gregorian Calendar.
-
- For every year, it first computes the amount of week days (Mo - Fr). Then, the amount of holidays falling on a week day (Mo - Fr) are subtracted.
-
- The script uses following extensions:
-
- Command Extension
- -------------------------------------
- current date current date
- display dialog display dialog
- weekDayG DatePack
- julNrG DatePack
- julNrToDateG DatePack
- easterG DatePack
-
-
- The script assumes the following settings at runtime
- ------------------------------------------------
-
- • 'Thursday, January 2, 1992 13:37:04' must be the
- date format returned by current date (can be set in the
- 'Date and Time' Control Panel)
-
- • Date input works in the format 'm/d/yyyy' only
-
- • Input is not verified
-
- • The script uses the holidays which are used in the state of Hessia, Germany
-
-
- You can alter the functions 'makeFixHolidays' and 'makeVarHolidays' to localize the script to the holidays valid in your area.